#include <stdio.h>

int main()
{
    int i = 0,j;
    int day[2][12] = 
    {
        {31,28,31,30,31,30,31,31,30,31,30,31},
        {31,29,31,30,31,30,31,31,30,31,30,31}
    };
    printf("请输入年月中间用.隔开");
    scanf("%d.%d",&i,&j);
    if (i%4==0)
        if(i%100!=0)
        {
            i = 1;
        }
        else
        {
            if(i%400==0)
            {
                i = 1;
            }
        }
    else
    {
        i = 0;
    }
    j--;
    printf("那个月天数是%d",day[i][j]);
}